import request from "../request/index";

const baseUrl = process.env.VUE_APP_BASE_URL;

export function GetClientList(roleId) {
  return request.get(`${baseUrl}/RoleClient/GetClientList?roleId=${roleId}`);
}

export function UpdateClientRole(roleId, clientIds) {
  return request.post(`${baseUrl}/RoleClient/UpdateClientRole`, {
    roleId: roleId,
    clientIds: clientIds,
  });
}
